class CreateFacets < ActiveRecord::Migration
  def self.up

    create_table :facets, :force => true do |t|
      t.column :node_id, :integer, :default => 0, :null => false
      t.column :community_id, :integer, :default => 1, :null => false
      t.column :facet, :string, :limit => 40, :default => "", :null => false
    end
  end

  def self.down
    drop_table :facets
  end
end
